#define _CRT_SECURE_NO_WARNINGS 1


#include<iostream>

using namespace std;

int main()
{
	int n = 0;
	int a = 0, b = 0, c = 0;
	while (cin >> n)
	{
		if (n <= 0)
		{
			break;
		}
		if (n >= 85)
		{
			a++;
		}
		else if (n >= 60 && n < 85)
		{
			b++;
		}
		else if (n < 60)
		{
			c++;
		}
	}
	cout << ">=85:" << a << endl;
	cout << "60-84:" << b << endl;
	cout << "<60:" << c << endl;

	return 0;
}